implemented getBoundaryPos