changed to arrays