fixed for spaces in arrays