typo and bad function call