SYS-796 improve parameters handling, and more clearer threshold caculation via method