more on arrays and $ref