fixed array.push, refactoring tree