fewer assignments in often-called function
add comment
Merge pull request #92 from escherba/u_wip2

minor optimization