renamed function to be more intuitive