applied Peter w.'s corrections; thanks for the correcting
fix a typo