added preference helper