local typo, undefined error fixing