changed the way to set preferences from method chain to traditional public variable setter