removed undefined function err
removed undefined function err