update all the check_*.m files to use proper inputs