added syntax checker