just before implementing the add function