only compileable djikstra