bugs related to getLine() method were solved.