updated mergeVisible