cleaning
addbit function added, better performance