renamed the function to be more descriptive.