memory managmetn now fixed.

i think....