weights now are separated with a \n