expr build function to be used in macros added