adding qDebugs for debugging