bug in viz and data manipulation