refactor round-robin