improves populate.py