refactored out a method