fixed REPL variables making them constant references