fix consistency writing
merged