update check function