character return value function