changed to enum