fixed typos and syntax