trying to figure out why this is crashing