Reduction of makespan through flexible production and remanufacturing to maintain the multi-stage automated complex production system