new methods index() and remove()