move common methods from child class to parent