slight reformat of one function