need to return result of t.setState() here