added support for array objects