fixing function inputs.