modified vj.py