avoid lose pattern