adding in the reduction and dleetion of messageBits
fixing some errors