converted tabs into spaces and halfway through array manipulations