rename variable t to temp