remove sq brackets