avoided double check of out of map