switched to let for locals, I think