removing useless bits