replace 'fill_pattern' with 'cpy_pattern' from 'lib/pattern.c'