removing unecessary bits