updated the postprocessing with the check on the lower and upper bounds