fixed specific route algorithm
added the SJE and SJM but there is a bug