it's wrong here
minor typos and code cosmetics