if you add brackets around this, you can move the local variables into this scope and only calculate them when needed.