reverse the code for bpsk