changes for autoplay