format the dirty code