change location again of terminate