remove double brackets