fix undifferentiated traverse of carousel
remove unnecessary function