removing last bit