now works for "1111\n" and "1212\n"