implemented round robin with priority