first step in repeat commands work