fixes function params.