attempting to transform array properly