to check the code