added characteradd code