implement reply functionality