disolve case statement and replaced with & comparators in facebook weighted