getting optimal values for local_T