use bits

I have not tested this commit, sorry.