getLine function in railService working