updated mpd18 use case

greatly simplified code by making use of recursive relation