changed getCorner to now use positionIndexer