fixed tgm
fixed reading