dependency graph of q3
code cleaning