helper functions

Functions designed to complete subtasks.