changed int to enum