prevent possible null dereferencing