modify computeRout method for computing circle