debugging pg
fixing bugs