reply function and additioal function added