clean prep code