removed priority code