printgen modified