renamed function for clarification