add input verification for inverse_reptend