changes to weight analysis code