print and pattern edit