still working on figuring all this out
terminate right