trying to generate array