add reply functions