cleaned up preferences.