clean up indents
renamed tail to last since it's a single value