fix to arrays