add region grow function