extended mda2 in order to switch detection of z position
added gui_results2