getpollbyid is done, could be improved