self cleaning function

self cleaning function