implement repitch mode