adding interval for polling