attempt at fixing pg