removed rpoly.cpp dependence