need to update index as well