made some stylistic changes