fixed pg stuff: