added new function into syntax class