remove unused $priority variable