chnaged counter to vector