add function in UPMP.h