added second merge solution