could you explain the `length==2 || length ==1` case that you want to ignore