script cleaning