added support for priority change