added for slideshow write