added buildTuples function but again can't return vector