refactored preference keys from string to enum