exception added and fixed a typo