modified repl