reading the code it's hard to know if you forgot to declare t or if it's declared by the containing method, maybe make that clearer somehow.