added temperature modeling