included algorithm