code formatting; pass along pattern argument