updated array access to object