trying arrays instead of lists