change array to brackets