add anchor pattern to init