functions related to poll