modify posts file