extracted eref and vref calculation