getByPosition funtion added to