prevar in genarator