general code cleansing