vectorize bin analysis