corrected get next line in order to be able to compile