trying change struct to array