updated minimal generator