add a utility method in KeyRange