getting the T1 map atumaticlly with a function