with proper pg gem