added code to call builtin functions