changed interface from std:: to QT