changing characters by entities