sample of input poll()