fixed a typo in the code