added effective.n  calculation