simplifies binary clock code