merging the best of two versions