check pattern for example