private methods in a class method