update pattern function description