thanks. Now I don't have to bother using a nested for-loop