change T to auto