added interaction to patterns