better reporting of out of range error