set var for weight