fix partition procedure with parameter position