change ref array