changes for slides. tested all the problems