added edit character functions