updated the addHours functionality.