simplification of bsvgen