calculate V and a lot of modifications