solving problems with mergin