frequency vectors: a correct way