printing syntax issues in console