pattern tweaking