bug: undefined function