update loop pattern