updating some of the helper functions