reformates code