update helper functions