starting of cmdPattern