update sds and zmalloc modification