CHG: erasing code duplication