mel corrected typing erors and syntax errors