turning into passages code