for (( j=2;j<4;j++ ))
do
#echo ${barringtype[$j]} ${listtype[$j]}
if [[ $barry1 = ${barringtype[$j]} ]] && [[ $list1 = ${listtype[$j]} ]];
then
let mod++
fi
done