working on squashing dup NilClass bug