refactored arr object