removing boxes solution