remove failing allocation in alloc function