update foo and bar