What factors affect temperature