fixing dsgd