improve initial mask positions