added accepting hook