getting djikstra