remove invoid function