changed order of computing q-expansion and compute up to needed prec immediately