added parallel gen