tryTemplate simplified