adds hours functionality