add the preference properly