changing repeat rules and adding simple callback