consolidated write statemets with their corresponding formats