addapting the code to deal with SZ observables