to make funclist with priority