moving pass gen to another script