added print gen