made some code in playlist.cpp aware of different containers