refactored code for easy addition of album_delete