time has to be an int