can recive data and transform to array