adding pattern