make sure data variable is initialized, part2