should check the range strictly.