clean up formating of arrays