remove bits written in C