trying to fix TypeErrors by retrying