converted temporary datasets from being saved in memory to being saved on a a disk as storing them in memory was causing arcmap to malfunction