Disclosed herein is hair cosmetic composition comprising a thiol based compound selected from thiolactic acid and its derivatives or salts and wherein the composition has a pH of less than 7. Also disclosed is a process for shaping or 5 altering the shape of hair or caring of the hair.