reply function added