improving repl