correction on shrinkwrap algorithm