finished the object output code and it seems to work without bugs.