fixed typos and indentation