number of elements start from 1, so middle point should be calculated wrt that