made getLocation independent of paramString