move t from arg to env