added weight column functionality