Improved unify_3dots