another try to pg gem