fixed typo by adding typeof