correct typo for respond func