more work on dijstktas algorithm