removing pg variables