updated to build out function call