seting local_T correctly