do you need t.name.equals instead of ==?