Correction in calc_phi_s: concatenate was not working