added plus 0 to weight to change from str to int