case handling nil