removed extra code
working simple poll example
fixed bug