renamed function to have more clear name