adding mean-shift