trying to use arrays instead of lists