removing pieces logic