change function formatting; add indents