step to check the penalty value