add fill internal region fucntion