source formatting, added array to object function