changed QList to QLinkedList as it more closely resembles std::list