improving index refreshing functions
updating everything