changed data type to enum