Thermal expansion and Gruneisen ratio near quantum critical points