modify the get line method