adds priority code for todo