added seconds to hours function