adding an out of range error message