created cmd_ command function