trying to figure out why the edit letter function is crashing