made a script out of this
added interval