added temp check