almost finished the hourly script