update to hidden clean function