fix for undefined function