changed to qvector for windows and cuts (need random access)