update greet function