broken double mem added