corrected a mistake requiring null check