377 / pattern generation