fixed transform for arrays