alert for values out of range