arr -> stat, remove extra indent, add 3 fns