added #newgen method