implemented original flag in main