separate rendered object manipulation into a module