correction for better calculation of what is to be processed