- avoid duplicate code