format the previous committed codes