this is so wasteful! use a for loop!