fixed typo and renamed parameters

fixed typo: "remove" instead of "add"