worked on slug_malloc