fixed create_poll method