fixed functionality for avgProcessingTime