added reply fun