adding another todo
defining get-index