reworked generating
generate again fixed