add function processing to lang