added limits to priority