add alloc_object to make objects allocated on heap