remove in place merge