update malloc to new