changed delete_lines functions and main so the arguments would remain consistent across functions