delete needless function