cleaned up bitbuffer