updated analysis code for vss