replace TimeoutInterval class with timeout digit in constructor