added limit to the average