removed unused mfunc functions