updated formatting and reverted back to os.system