pass tryp object as parameters instead of having multiple arguments on method definition