updated path finding strategy