added algo for workcomp