range check table was wrong