K400: found global vars that should be local