adding MAX limit 20ade logic