removed unnecessary saving of commands