find closest trigger func