modify character file