graham check line 148, that throws the error