loop state figure