added grothendieck polys code