created a method