partially fixed striped array and cleaned up