generate non empty list of commands