just some notes

and moved the definition of a local variable closer to where it's used