remove undefined function