code for VOB analysis