generator generates whats needed for line graphs