add gd and sd.