added generic object formatting