changed the way to apply syntaxes