updates some helper functions