added calculation of the average position of the 1st result