only set null once