add _format_parameters method