change greeting logic