replace double priority with long