tried to fix terminate, didn
't really work