added ifs
REPL