cleaned up poly's constructor.