organized xbar array in variant.cpp