add intervals to 'find battle' and to main