use tuples instead of two lists