improved example function call