created add and remove helper functions