update cleaning code