working on building diagram from element objs