changed nil key behavior