modified 10 sec interval script