changed function name to be more clear as to what it does