changed String[] to enum
changed hardcoded values to variables