cleaned up populate.py