remove upei specific function