finishing the add function