use safe dereference operator