added auto cleaning and clear