cosmetic writing code