add multi thread clip function