renamed function to match what it does