when ever i give follow up command it is redoing all the previous command so it end up with multiple duplicates 