adding w and g