revise weights