backward refactoring of arrays