temperature needs to be an integer