--getting rid of extra try catch in data log to catch errors