working on priority problem