implement carousel transition solver