allocate to_return if not allocated