renamed a function to better describe what it does