pg problem solving WIP