renamed functions for readability