alternate between pollfirst and polllast