*fixed memory leaks (still at least one remains)