Nil replaced with empty lists