maybe this is where the exception is happening?