add varm and stdm