neatting code