implemented poll and add