updating functions added