enum classes added to make functions more robust