change os.system to os.popen