making correct time work