fix naming of function