updated subgen
added subgen