tidified code