add packed gen class