i think d may be `NULL` and thus DENIS1(t) may fail... no?