function subs works for indexed indents too