take care of n = 0