renamed function to be more descriptive