remove empty write trailer functions