Data communication is the process of exchanging information between sender and receiver. The basic objective of a communication system is to transmit data which is free of error. Advancement in technology has made various revolutions in data communication, with which come greater chances that the data to be sent becomes corrupted. The data is transferred from various transmission impairments and during this period various factors affect the signal, the data received at the receiver is different from the data transmitted. As digital signals exist in two states either high or low, the error occurred will change its state. In today's advance world different techniques have been made to detect and remove error in the data. The paper delivers a simple error correction and detection method which can detect and correct single, multiple and burst error simply by using XNOR and COMPLEMENT. In the proposed method key is calculated and is send as a redundant bits at the receiver different operations are made to get the data that was originally sent. This error correction is a step ahead of hamming code. This paper also discusses the shortcomings of hamming code