What does the weight of a gram depend on?