finished reply function