made delete interval func