added method to calc crash key