moved printf to qDebug