change poll to interval