adding reverse code