add accept function
add accept function