parital redesign and sorting