adding new poll function