fixes for arrays