small cleanup and fixed a typo