cleaned up pa6. need to do write up