typo in function call corrected