filled out hexagram functions