smal refactoring, move method to abstract class