remove inactive functions