improving malloc stability