renamed inputGenerator