re-edited the carousel code in