refact clean func