improved sd plot