shorten merge solution