added range arg to series computation and removed test prints