UseRAII works so far it recognizes if the declare was in the last line
not if something was executed between declare and first assign.
it also skips variables that are declared static