added a function foo