duplicate main