add preference class