adding some conditions to the userprefs