implementing repeated commands