stabilising with pattern search