read weight to variable in mainscreen