add foo and delete foo