add struct Preferences