Partial Cleaning code