clearing the complete sub array