implemented clean feature