emptied database to take care of zero case (n = 0). n = 1 coming up next.