removing unwanted variable initialize when running in learn-only mode