added correlated Q operator but getting Null pointer exception