modify check script