On thermodynamics of supercooled liquids and glasses