Correcting the sd functions only for graphical