checking code for syntax bug