add check source code function