don't check static variables. better handling of for-loops.