add pg and rails factor