added label for EBD, some improvements of vector using