make a run() function, call it if __main__