modified create_view.py to get better results.