add usage of poll funciton