load check function