changed pereferenceKeys from strings to enums