fix value of n