make pages an array