made generators actually working