meanshift modifications