import utilities: functions for generator