updating functions to do