handle n = 0 case