removed unnecessary readline