correct typos and adjust syntax for clarity