adding QObject and comment