remove p from qsmooth and add it to scals