Brush up code
Change aim data from ['type', idx] to ['type', [pos]]