reply based on input