make linear weights