updated character pos