Worked on packet SM. fixed mistakes.