removed unused for each loop
added two more commands