adding first dmalloc code