update regular and similarity