early carousel code