switches to pg