add reply update function