completed reply function