debugging the code