more work on improving malloc