repl refacter
code cleaning