dynamic zAura function

also add indentations