mod patterns