poll logic