trying to figure out crash