simplified check.py