merge pga.py