changed default value of shouldRepeat to true