changes to binary counter