fixing parameter type and formatting