add and syntax check.