flexible code for mode and art_id