before switch to pg in search exercise