removed debug print of priorities