restrict boundaries