working on input for pegas(R)