fix position spacing, array cleaning