allow location is null