adding bits for hex