adding syntax check
syntax check