correction from check.py cleanup mistakes