fixed the typo in the method