adding the EMR version of the code
page rank sudharsan's changes