addig parser generator function