adding poll method