changed from floating point to integer output for hours