switch to enums usage