switch to arrays