made basic generate working again