fixing function arguments