wrapped rquire statement in a method