add initialization check