fix my broken function call