added calls to module poly in resonsctruct and set setup to compile poly