add accept method