clear debug and unused fucntions