added temp diff and few other changes