changing to arrays