made a processing optimisation