construct unique patterns