added temp as a factor