made into a method