wrap to a method