changed interval to a var