ref to wrong array