module of priority functions