added env to distance merge, single shell