lineshape function