branch master - implemented priorities in list