formate code and add trans message as binary