prevents two setIntervals from firing