updating temp2