trying to clean up some memory
more memory cleanup i hope